package com.project.bookstore.cart.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("购物车")
@Accessors(chain = true)
public class Cart implements Serializable {
    @ApiModelProperty("id")
    private Integer id;  //购物车列表id
    @ApiModelProperty("userId")
    private Long userId;  //用户id
    @ApiModelProperty("图书id")
    private Long bookId;  //用户id
    @ApiModelProperty("图片")
    private  String picture;  //图片
    @ApiModelProperty("书名")
    private String bookName;  // 书名
    @ApiModelProperty("新旧程度")
    private String degree;  // 新旧程度
    @ApiModelProperty("价格")
    private BigDecimal price;   //价格
    @ApiModelProperty("数量")
    private Integer count;  //数量
    @ApiModelProperty("总价")
    private BigDecimal amount;   //总价
    @ApiModelProperty("创建时间")
    private LocalDateTime created;  //创建时间
    @ApiModelProperty("修改时间")
    private LocalDateTime modified;  //修改时间

}
